package com.aaa.service;

import com.aaa.entity.Facility;
import com.aaa.entity.Role;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface RoleService {
    //角色信息接口
    PageInfo<Role> query(String role , Integer pageNum, Integer pageSize );

    //角色信息唯一接口
    List<Map<String,Object>> find(String role);

    //添加角色接口
    int add(String role);

    Integer  roleById(Integer id);

    List<Role> findAll();

    Integer addRole(Integer id, Integer sid);
}
